package CreationMode.simpleFactory.coffee;

/**
 * 具体工厂类
 */
public class CoffeeFactory {

    public Coffee createCoffe(CoffeeType coffeeType){
        if(coffeeType == CoffeeType.LATTE) return new LatteCoffee();
        if(coffeeType == CoffeeType.AMERICANO) return new AmericanoCoffee();
        return null;
    }
}
